Ext.define('AM.store.UserStore', {
	extend: 'Ext.data.Store',
	model: 'AM.model.User',
	storeId: 'id',
	proxy:{
	    type:'ajax',
	    api:{
	    	read:'/laoluo-erp/user!queryPage.action',
	    	create:'/laoluo-erp/user!insert.action',
	    	destroy:'/laoluo-erp/user!delete.action',
	    	update:'/laoluo-erp/user!update.action'
	    },
	    actionMethods:{
	    	read:'POST'
	    },
	    reader: {
	        type: 'json',
	        root:'data'
	    },writer:{
			type:'json',
			writeAllFields: false
		}
	},
	autoLoad: true,
	autoSync:true
});